#define _CRT_SECURE_NO_WARNINGS 1

#include<iostream>

using namespace std;

int minimumMoves(string s) {
    int res = 0, covered = -1;
    for (int i = 0; i < s.size(); i++)
    {
        if (s[i] == 'X' && i > covered)
        {
            res++;
            covered = i + 2;
        }
    }
    return res;
}
